<?php
/**
 * @author 王志昂
 * @version 
 */
class Zend_View_Helper_DealOtherPage
{
    public function dealOtherPage($otherPagesInfo)
    {
        $otherPagesTable = Zend_Registry::get('database')->page;
        $otherPagesPostId = $otherPagesInfo[$otherPagesTable->postid];
        if ($otherPagesPostId == 0 || empty($otherPagesPostId)) {
            $href = '#';
        } else {
            $href = APPLICATION_URL . '/page/index/p/' . $otherPagesPostId;
        }
        return array_merge($otherPagesInfo, array('href' => $href));
    }
}
